# -*- coding: utf-8 -*-

"""
任务配置中心：定义了所有支持的CI任务及其元数据。
- name: 任务的唯一标识符，用于读取模板文件和钩子脚本。
- sName: 任务的缩写，用于在配置文件中引用任务。
- config_key: (可选) 如果任务在ci.json中的配置名与`name`不同，则用此键指定。
"""
TASK_CONFIGS = [
    {"name": "build", "sName": "build"},
    {"name": "ut", "sName": "ut"},
    {"name": "it", "sName": "it"},
    {"name": "coverage", "sName": "coverage"},
    {"name": "version_check", "sName": "vc", "config_key": "vc"},
    {"name": "dependency_check", "sName": "dependency"},
    {"name": "ipmi_check", "sName": "ipmi"},
    {"name": "line_limit_check", "sName": "line"},
    {"name": "header", "sName": "header"},
    {"name": "smoke_test", "sName": "smoke_test"},
    {"name": "model_check", "sName": "model_check"},
    {"name": "version_check", "sName": "vc"},
]

ENV_MAPPING = {
    "ak": "ak",
    "sk": "sk",
    "obs_endpoint": "obs_endpoint",
    "obs_static_endpoint": "obs_static_endpoint",
    "obs_bucket_name": "obs_bucket_name",
    "gitcode_domain": "gitcode_domain",
    "gitcode_api_domain": "gitcode_api_domain",
    "gitcode_username": "gitcode_username",
    "gitcode_rw_token": "gitcode_rw_token",
    "gitcode_token": "gitcode_r_token",
    "conan_user": "conan_r_user",
    "conan_password": "conan_r_password",
    "project_id": "project_id",
    "sca_appId": "sca_appId",
    "sca_secretKey": "sca_secretKey",
    "sca_domain": "sca_domain",
    "image_version": "image_version",
    "variable_id": "variable_id"
}
